package com.shop.loan.controller;

import com.shop.loan.model.common.ResResult;
import com.shop.loan.service.StatisticsService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.erupt.core.annotation.EruptRouter;
import xyz.erupt.core.constant.EruptRestPath;

import javax.annotation.Resource;

@RestController
@RequestMapping(EruptRestPath.ERUPT_API + "/statistics")
public class StatisticsController {


    @Resource
    StatisticsService statisticsService;


    @EruptRouter(
            verifyType = EruptRouter.VerifyType.MENU
    )
    @PostMapping("/num")
    public ResResult num() {
        return statisticsService.num();
    }


}
